/**
 * @file port_ble_internal.h
 * @brief 
 * @author dotc (dotchan@qq.com)
 * @date 2025-01-21
 * 
 * @copyright Copyright (c) 2025 by 深圳市鹏天微智能科技有限公司, All Rights Reserved.
 */

#ifndef __PORT_BLE_INTERNAL_H__
#define __PORT_BLE_INTERNAL_H__

#if defined(CONFIG_PORT_BLE_ENABLE)

/* ==================== [Includes] ========================================== */

#include "xf_utils.h"
#include "port_ble_msg.h"

#ifdef __cplusplus
extern "C" {
#endif

/* ==================== [Defines] =========================================== */

/* ==================== [Typedefs] ========================================== */

/* ==================== [Global Prototypes] ================================= */

port_msg_early_handler_status_t port_msg_early_handler_gap_connect_req(uint8_t conn_id, const port_msg_param_var_t *param);
port_msg_early_handler_status_t port_msg_early_handler_gap_connect(uint8_t conn_id, const port_msg_param_var_t *param);
port_msg_early_handler_status_t port_msg_early_handler_gap_pair_req(uint8_t conn_id, const port_msg_param_var_t *param);
port_msg_early_handler_status_t port_msg_early_handler_gap_pair_result(uint8_t conn_id, const port_msg_param_var_t *param);
port_msg_early_handler_status_t port_msg_early_handler_gap_disconnect(uint8_t conn_id, const port_msg_param_var_t *param);
port_msg_early_handler_status_t port_msg_early_handler_gap_scan_result(uint8_t conn_id, const port_msg_param_var_t *param);
port_msg_early_handler_status_t port_msg_early_handler_gap_pair_end(uint8_t conn_id, const port_msg_param_var_t *param);
port_msg_early_handler_status_t port_msg_early_handler_gap_conn_params_update(uint8_t conn_id, const port_msg_param_var_t *param);
port_msg_early_handler_status_t port_msg_early_handler_gap_conn_params_update_req(uint8_t conn_id, const port_msg_param_var_t *param);
port_msg_early_handler_status_t port_msg_early_handler_gap_conn_params_update_ind(uint8_t conn_id, const port_msg_param_var_t *param);
port_msg_early_handler_status_t port_msg_early_handler_gap_cmplt_evt(uint8_t conn_id, const port_msg_param_var_t *param);

port_msg_early_handler_status_t port_msg_early_handler_gatt_cmplt_evt(uint8_t conn_id, const port_msg_param_var_t *param);
port_msg_early_handler_status_t port_msg_early_handler_gatt_client_read_rsp(uint8_t conn_id, const port_msg_param_var_t *param);

/* ==================== [Macros] ============================================ */

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif

#endif // __PORT_BLE_INTERNAL_H__
